package com.example.demo.ioc;

/**
 * @Author: wenjingyuan
 * @Date: 2023/07/16/0:21
 * @Description:模拟ioc容器
 */
public class Test {
    private Tire tire;
    private Bottom bottom;
    private  FrameWork framework;
    private Car car;
    public Test(){
        this.tire = new Tire(12);
        this.bottom = new Bottom(this.tire);
        this.framework = new FrameWork(this.bottom);
        this.car = new Car(this.framework);
    }
    public static void main(String[] args) {
        Test test=new Test();
        test.car.init();
    }
}
